package com.bigfish.gbs.service;

import com.bigfish.gbs.entity.Role;

import java.util.List;

/**
 * @Author Joycessh
 * @Description
 * @Date 12/15/18 6:42 PM
 */
public interface RoleService {
    boolean authorityRoleResource(int roleId, int resourceId);

    boolean addRole(Role role);

    boolean updateRole(Role role);

    boolean deleteRoleByRoleId(Integer roleId);

    boolean deleteAuthorityRoleResource(Integer roleId, Integer resourceId);

    List<Role> getRoleList();
}
